<table cellpadding="2" cellspacing="1" width="98%">
<input type="hidden" name="setting[type]" value="varchar">
    <tr> 
        <td width="150">文本框长度</td>
        <td>
            <div class="layui-input-inline" style="width: 80px;">
                <input name="setting[size]" value="<?php echo isset($setting['size']) ? $setting['size'] : '50'; ?>" size="10" autocomplete="off" class="layui-input" type="text">
            </div>
            <div class="layui-input-inline" style="width: 80px;">
            px
            </div>
        </td>
    </tr>
    <tr> 
        <td>默认值</td>
        <td>
            <div class="layui-input-inline" style="width: 200px;">
                <input name="setting[defaultvalue]" value="<?php echo $setting['defaultvalue']; ?>" size="40" autocomplete="off" class="layui-input" type="text">
            </div>
        </td>
    </tr>
    <tr> 
        <td>是否为密码框</td>
        <td>
            <div class="layui-input-inline">
              <input name="setting[ispassword]" value="1" title="是" type="radio" <?php if ($setting['ispassword']) echo 'checked'; ?>>
              <input name="setting[ispassword]" value="0" title="否" type="radio" <?php if (!$setting['ispassword']) echo 'checked'; ?>>
            </div>
        </td>
    </tr>
</table>